package com.kuaiditu.assistant.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Eenie on 2017/8/29.
 * Email: eeniework@gmail.com
 * Des:
 */

@Entity(nameInDb = "express_entity")
public class ExpressEntity {

    public static final int EXPRESS_STATE_CODE_ADD_DB = 1001;
    public static final int EXPRESS_STATE_CODE_SEND_TPOS_FAILURE = 1002;
    public static final int EXPRESS_STATE_CODE_SEND_TPOS_SUCCESS = 1003;
    public static final int EXPRESS_STATE_CODE_SEND_SELF_FAILURE = 1004;
    public static final int EXPRESS_STATE_CODE_SEND_SELF_SUCCESS = 1005;
    public static final int EXPRESS_SEND_TYPE_ACCEPT = 0;
    public static final int EXPRESS_SEND_TYPE_SIGN = 1;
//    public static final int EXPRESS_STATE_CODE_ADD_DB = 1;
//    public static final int EXPRESS_STATE_CODE_ADD_DB = 1;
//    public static final int EXPRESS_STATE_CODE_ADD_DB = 1;
//    public static final int EXPRESS_STATE_CODE_ADD_DB = 1;
//    public static final int EXPRESS_STATE_CODE_ADD_DB = 1;
//    public static final int EXPRESS_STATE_CODE_ADD_DB = 1;


    @Id(autoincrement = true)
    private Long _id;
    //订单ID
    private int task_id;
    //单号
    private String express_num;
    //快递公司代号
    private int express_code;
    //状态码
    private int state_code;
    //状态描述
    private String state_des;
    //上传类型
    private int scan_type_code;
    //最近状态修改时间
    private long modification_time;


    @Generated(hash = 897675558)
    public ExpressEntity(Long _id, int task_id, String express_num,
                         int express_code, int state_code, String state_des, int scan_type_code,
                         long modification_time) {
        this._id = _id;
        this.task_id = task_id;
        this.express_num = express_num;
        this.express_code = express_code;
        this.state_code = state_code;
        this.state_des = state_des;
        this.scan_type_code = scan_type_code;
        this.modification_time = modification_time;
    }

    @Generated(hash = 296325710)
    public ExpressEntity() {

    }


    public ExpressEntity(int task_id, int express_code, String express_num, int scan_type_code) {
        this.task_id = task_id;
        this.express_code = express_code;
        this.express_num = express_num;
        this.modification_time = System.currentTimeMillis();
        this.scan_type_code = scan_type_code;
        this.state_code = EXPRESS_STATE_CODE_ADD_DB;
        this.state_des = "待上传快递公司";
    }

    public Long get_id() {
        return this._id;
    }

    public void set_id(Long _id) {
        this._id = _id;
    }

    public int getTask_id() {
        return this.task_id;
    }

    public void setTask_id(int task_id) {
        this.task_id = task_id;
    }

    public String getExpress_num() {
        return this.express_num;
    }

    public void setExpress_num(String express_num) {
        this.express_num = express_num;
    }

    public int getExpress_code() {
        return this.express_code;
    }

    public void setExpress_code(int express_code) {
        this.express_code = express_code;
    }

    public int getState_code() {
        return this.state_code;
    }

    public void setState_code(int state_code) {
        this.state_code = state_code;
    }

    public String getState_des() {
        return this.state_des;
    }

    public void setState_des(String state_des) {
        this.state_des = state_des;
    }

    public int getScan_type_code() {
        return this.scan_type_code;
    }

    public void setScan_type_code(int scan_type_code) {
        this.scan_type_code = scan_type_code;
    }

    public long getModification_time() {
        return this.modification_time;
    }

    public void setModification_time(long modification_time) {
        this.modification_time = modification_time;
    }


}
